package com.ming.attendance.controller;

import com.ming.attendance.po.Beacon;
import com.ming.attendance.po.ResponseBean;
import com.ming.attendance.service.BeaconService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Beacon")
public class BeaconController {
    @Autowired
    private BeaconService bs;

    @GetMapping("/unBind")
    public ResponseBean<Integer> unBind(Beacon beacon){
        return bs.unBind(beacon);
    }
}
